package com.tedu.demo5_1;

import com.tedu.demo5_1.controller.UserController;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Demo {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext("com.tedu.demo5_1");
        UserController us = context.getBean(UserController.class);
        us.login();
    }
}
